package com.jhhc.RHDB.Data.Pojo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.io.Serializable;

/**
 * (BdmsStTideH)实体类
 *
 * @author makejava
 * @since 2023-03-08 14:55:55
 */
public class ST_TIDE_H implements Serializable {
    private static final long serialVersionUID = -35186157991772285L;
    
    private String stcd;
    
    private String tm;
    
    private Double tdz;

    @Override
    public String toString() {
        return "ST_TIDE_H{" +
                "stcd='" + stcd + '\'' +
                ", tm='" + tm + '\'' +
                ", tdz=" + tdz +
                ", airp=" + airp +
                ", tdchrcd='" + tdchrcd + '\'' +
                ", tdptn='" + tdptn + '\'' +
                ", hltdmk='" + hltdmk + '\'' +
                '}';
    }

    private Double airp;
    
    private String tdchrcd;
    
    private String tdptn;
    
    private String hltdmk;

    private String month;
    private String day;

    public String getMonth() {
        return setMonth();
    }

    public String setMonth() {
        String month1 =  getTm();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 日期格式转换 月份
        try {
            return format.format(format.parse(month1)).substring(0,7);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getStcd() {
        return stcd;
    }

    public void setStcd(String stcd) {
        this.stcd = stcd;
    }

    public String getTm() {
        return tm;
    }

    public void setTm(String tm) {
        this.tm = tm;
    }

    public Double getTdz() {
        return tdz;
    }

    public void setTdz(Double tdz) {
        this.tdz = tdz;
    }

    public Double getAirp() {
        return airp;
    }

    public void setAirp(Double airp) {
        this.airp = airp;
    }

    public String getTdchrcd() {
        return tdchrcd;
    }

    public void setTdchrcd(String tdchrcd) {
        this.tdchrcd = tdchrcd;
    }

    public String getTdptn() {
        return tdptn;
    }

    public void setTdptn(String tdptn) {
        this.tdptn = tdptn;
    }

    public String getHltdmk() {
        return hltdmk;
    }

    public void setHltdmk(String hltdmk) {
        this.hltdmk = hltdmk;
    }




}

